﻿using Framework.Base;
using  System;

using  time_t = System.UInt64;

namespace Framework.Time
{
    /// <summary>
    /// 服务器时间
    /// </summary>
    public class ServerTime : SignalBaseObject<ServerTime>
    {

        private float m_offsetTime = 0f;

        public void SetServerTime(float time)
        {
            m_offsetTime = time - UnityEngine.Time.unscaledTime;
        }

        public float localTime
        {
            get
            {
                return  (m_offsetTime + UnityEngine.Time.unscaledTime);
            }
        }
        
        
    }
}